import 'package:ati_package/pages/common/ati_scaffold.dart';
import 'package:ati_package/pages/common/widgets/ati_common_btn.dart';
import 'package:ati_package/pages/common/widgets/ati_text_input.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ChangeNicknameView extends StatefulWidget {
  const ChangeNicknameView({super.key});

  @override
  State<ChangeNicknameView> createState() => _ChangeNicknameViewState();
}

class _ChangeNicknameViewState extends State<ChangeNicknameView> {
  @override
  Widget build(BuildContext context) {
    return AtiScaffold(
      title: '修改昵称',
      actionWidget: AtiCommonBtn(
        width: 57.5.r,
        height: 25.r,
        onPressed: () {},
        titleStr: '提交',
      ),
      body: Container(
        padding: EdgeInsets.symmetric(vertical: 7.5.r, horizontal: 16.r),
        child: AtiTextInput(
          name: 'oldPassword',
          hint: '请输入新的昵称',
          showClearButton: true,
          initialValue: '浪子',
          validator: (val) => val == null || val.isEmpty ? '请输入新的昵称' : null,
        ),
      ),
    );
  }
}
